<?php

namespace Application\Entity;


use Doctrine\ORM\Mapping as ORM;
use Application\Repository\InvitationRepository;
/**
 * User
 *
 * @ORM\Entity(repositoryClass="Application\Repository\InvitationRepository") @ORM\Table(name="invitation")
 */
class Invitation
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    public $id;


    /**
     * @var string
     *
     * @ORM\Column(name="message", type="string", length=255, nullable=true)
     */
    public $message;
    
    /**
     * @var integer. Value : 1->to friend 2->To voyage, etc.
     *
     * @ORM\Column(name="type", type="integer",  nullable=true)
     */
    public $type;
    
    /**
     * @var \Provider
     *
     * @ORM\ManyToOne(targetEntity="Application\Entity\User")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="user_from_uid", referencedColumnName="uid")
     * })
     */
    public $userFrom;
    
    /**
     * @var \Provider
     *
     * @ORM\ManyToOne(targetEntity="Application\Entity\User")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="user_to_uid", referencedColumnName="uid")
     * })
     */
    public $userTo;
    
    /**
     * @var string
     *
     * @ORM\Column(name="accept", type="boolean", nullable=true)
     */
    public $accept;
    
       /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", nullable=true)
     */
    public $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="modified_at", type="datetime", nullable=false)
     */
    public $modifiedAt;

}
